package com.es.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

/**
 * 描述:
 * es-meta-
 *
 * @author Derek
 * @create 2021-11-29 9:39
 */
@Controller
@RequestMapping("/spring")
public class IndexController {

    @RequestMapping("/mvc")
    public String index(){
        return "mvc";
    }

    @RequestMapping("/hello")
    public ModelAndView hello(){
       // ModelAndView modelAndView = new ModelAndView()();
       // modelAndView.addObject()
        return new ModelAndView("mvc");
    }


}
